package com.mask.io;

import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.stream.Stream;

/**
 * ClassName StreamTest
 * Create by hx
 * Date 2021/9/16 3:09 下午
 */

public class StreamTest {
    public static void main(String[] args) throws IOException {
        String separator = File.separator;
        Stream<String> lines = Files.lines(Path.of(separator + "/Users/hx/Desktop/" + "abc.txt"), StandardCharsets.UTF_8);
        //test

    }
}
